package com.reliable.service.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 上传会话关联实体
 * 记录每次上传文件中包含的唯一会话ID（upload_id来自MySQL，session_id来自Excel）
 *
 * @author ruoyi
 * @date 2025-10-17
 */
@Data
@ApiModel(value = "上传会话关联")
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("upload_session_ref")
public class UploadSessionRef {
    private static final long serialVersionUID = 1L;

    /**
     * 上传记录ID，与MySQL中的upload_record.upload_id一致，全局唯一
     */
    @ApiModelProperty(value = "上传记录ID，与MySQL中的upload_record.upload_id一致，全局唯一", position = 0)
    @TableId(value = "upload_id", type = IdType.NONE)
    private Long uploadId;

    /**
     * 会话唯一标识，来自Excel中的session_id字段
     */
    @ApiModelProperty(value = "会话唯一标识，来自Excel中的session_id字段", position = 1)
    private String sessionId;
}